package xyz.luckapp.web;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

import xyz.luckapp.entity.Json;

public abstract class ControllerAll {
	@ExceptionHandler(Exception.class)
	@ResponseBody
	public Object exp(Exception e){
		e.printStackTrace();
		return new Json(e);
		
	}
}
